home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Adobe Graphics & Publishing SDK 1996 December
/
Adobe Graphics & Publishing SDK 1996 December.iso
/
mac
/
Illustrator 6.0 SDK r1 Mac
/
AI Plugin Interface
/
AINotifier.h
< prev
next >
Wrap
Text File
|
1995-12-21
|
2KB
|
112 lines
/**
AINotifier.h
Copyright (c) 1995 Adobe Systems Incorporated.
All Rights Reserved
Adobe Illustrator 6.0 Notifier Suite.
**/
#ifndef __AINotifier__
#define __AINotifier__
/*******************************************************************************
**
** Imports
**
**/
#include "AITypes.h"
#include "AIEvent.h"
#include "AIPlugin.h"
#if Macintosh
#ifdef __cplusplus
extern "C" {
#endif
#if PRAGMA_ALIGN_SUPPORTED
#pragma options align=mac68k
#endif
#if PRAGMA_IMPORT_SUPPORTED
#pragma import on
#endif
#endif
/*******************************************************************************
**
** Constants
**
**/
#define kAINotifierSuite "AI Notifier Suite"
#define kAINotifierVersion 2
#define kSelectorAINotify "AI Notify"
/*******************************************************************************
**
** Types
**
**/
// This is a reference to a notifier. It is never dereferenced.
typedef struct _t_AINotifierOpaque *AINotifierHandle;
// The contents of a notifier message.
typedef struct {
AIPluginData d;
AINotifierHandle notifier;
char *type;
void *notifyData;
} AINotifierMessage;
/*******************************************************************************
**
** Suite Record
**
**/
typedef struct {
MACPASCAL FXErr (*AddNotifier) ( AIPluginHandle self, char *name, char *type,
AINotifierHandle *notifier );
MACPASCAL FXErr (*GetNotifierName) ( AINotifierHandle notifier, char **name );
MACPASCAL FXErr (*GetNotifierType) ( AINotifierHandle notifier, char **type );
MACPASCAL FXErr (*GetNotifierActive) ( AINotifierHandle notifier, Boolean *active );
MACPASCAL FXErr (*SetNotifierActive) ( AINotifierHandle notifier, Boolean active );
MACPASCAL FXErr (*GetNotifierPlugin) ( AINotifierHandle notifier, AIPluginHandle *plugin );
MACPASCAL FXErr (*CountNotifiers) ( long *count );
MACPASCAL FXErr (*GetNthNotifier) ( long n, AINotifierHandle *notifier );
MACPASCAL FXErr (*Notify) ( char *type, void *notifyData );
} AINotifierSuite;
#if Macintosh
#if PRAGMA_IMPORT_SUPPORTED
#pragma import off
#endif
#if PRAGMA_ALIGN_SUPPORTED
#pragma options align=reset
#endif
#ifdef __cplusplus
}
#endif
#endif
#endif